<div id="content">
    <fieldset>
        <legend>Registration</legend><br/>
        <?php
        $attributes = array('id' => 'register_form');
        echo form_open('register/create_user',$attributes);
        $firstname = array(
            'name' => 'firstname',
            'id' => 'firstname',
            'class' => 'required',
            'size' => '28',
            'minlength' => '6',
            'value' => set_value('firstname')
        );
        $lastname = array(
            'name' => 'lastname',
            'id' => 'lastname',
            'class' => 'required',
            'size' => '28',
            'value' => set_value('lastname')
        );
        $contact = array(
            'name' => 'contact',
            'id' => 'contact',
            'class' => 'required',
            'size' => '28',
            'value' => set_value('contact')
        );
        $date = array(
            'name' => 'dob',
            'id' => 'dob',
            'value' => set_value('date')
        );
        $email = array(
            'name' => 'email',
            'id' => 'email',
            'class' => 'required email',
            'size' => '28',
            'value' => set_value('email')
        );
        $street1 = array(
            'name' => 'street1',
            'id' => 'street1',
            'value' => set_value('street1')
        );
        $street2 = array(
            'name' => 'street2',
            'id' => 'street2',
            'value' => set_value('street2')
        );
        $unitNumber = array(
            'name' => 'unitNumber',
            'id' => 'unitNumber',
            'value' => set_value('unitNumber')
        );
        $postal = array(
            'name' => 'postal',
            'id' => 'postal',
            'value' => set_value('postal')
        );
        $password1 = array(
            'name' => 'password1',
            'id' => 'password1',
            'class' => 'password',
            'size' => '28',
            'value' => set_value('password1')
        );
        $password2= array(
            'name' => 'password2',
            'id' => 'password2',
            'class' => 'required',
            'size' => '28',
            'value' => set_value('password2')
        );

        $captcha = array(
            'name' => 'captcha',
            'id'  => 'captcha',
            'class' => 'required',
            'size' => '28',
            'value' => set_value('captcha')
        );
        ?>
            <table>
<!--                user personal information fields-->
                <tr>
                    <td colspan="3"><b>PERSONAL INFORMATION</b></td>
                </tr>
                <tr>
                    <td>First Name</td>
                    <td>*</td>
                    <td><?php echo form_input($firstname); ?></td>
                </tr>
                <tr>
                    <td>Last Name</td>
                    <td>*</td>
                    <td><?php echo form_input($lastname); ?></td>
                </tr>
                <tr>
                    <td>Gender</td>
                    <td></td>
                    <td><?php echo form_radio('gender','Male'); ?><b>Male</b><?php echo form_radio('gender','Female'); ?><b>Female</b></td>
                </tr>
                <tr>
                    <td class="required date">Date of Birth</td>
                    <td></td>
                    <td><?php echo $formdate->selectDay() ?>
                        <?php echo $formdate->selectMonth() ?>
                        <?php echo $formdate->selectYear() ?>
                    </td>
                </tr>
                <tr>
                    <td>Country</td>
                    <td>*</td>
                    <td><?php echo form_dropdown('country',$country_list); ?></td>
                </tr>
                <tr>
                    <td>Contact Number</td>
                    <td>*</td>
                    <td><?php echo form_input($contact); ?></td>
                </tr>
                <tr>
                    <td>Email Address</td>
                    <td>*</td>
                    <td><?php echo form_input($email); ?></td>
                </tr>
<!--                user residential address fields-->
<!--                <tr>
                    <td colspan="2"><b>RESIDENTIAL ADDRESS</b></td>
                </tr>
                <tr>
                    <td><label>Street Name 1</label></td>
                    <td><?php echo form_input($street1); ?></td>
                </tr>
                <tr>
                    <td><label>Street Name 2</label></td>
                    <td><?php echo form_input($street2); ?></td>
                </tr>
                <tr>
                    <td><label>Unit Number</label></td>
                    <td><?php echo form_input($unitNumber); ?></td>
                </tr>
                <tr>
                    <td><label>Postal Code</label></td>
                    <td><?php echo form_input($postal); ?></td>
                </tr>-->
<!--                user login details fields-->
                <tr><td height="20px"></td></tr>
                <tr>
                    <td colspan="2"><b>LOGIN DETAIL</b></td>
                </tr>
                <tr>
                    <td>Password</td>
                    <td>*</td>
                    <td><?php echo form_password($password1); ?></td>
                </tr>
                <tr>
                    <td>Confirm Password</td>
                    <td>*</td>
                    <td><?php echo form_password($password2); ?></td>
                </tr>
                <tr><td height="20px"></td></tr>
                <tr>
                    <td colspan="2"><b>WORD VERIFICATION</b></td>
                </tr>
                <tr>
                    <td></td>
                    <td></td>
                    <td><?php echo $image;?><td>
                </tr>
                <tr>
                    <td></td>
                    <td>*</td>
                    <td><?php echo form_input($captcha); ?></td>
                </tr>
                <tr>
                    <td colspan="3"><?php $att = array('class' => 'submit'); echo form_submit('register_submit', 'Register', $att); ?> </td>
                </tr>
            </table>
        <?php echo form_close(); ?>

        <?php echo validation_errors();?>
    </fieldset>
</div>
